package com.example.a_buffer;

import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;

public class Demo3BufferedReader {
    public static void main(String[] args) {
         try (BufferedReader br = new BufferedReader(new FileReader("ab.txt"))) {
             String line;
             while ((line = br.readLine()) != null) {
                 System.out.println(line);
             }
         } catch (Exception e) {
             throw new RuntimeException(e);
         }
    }
}
